<!-- landing/index.jsp -->

<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Fitso</title>
		<link rel="stylesheet" type="text/css" href="<spring:url value='/themes/test.css'/>" />
	</head>
	<body>
		<h3><spring:message code="welcome.title" /></h3>
		
		<form:errors path="credentials"/>
		<form:form commandName="credentials" method="post">
			<table>
				<tr>
					<td><spring:message code="credentials.email" /></td>
					<td><form:input path="email" /></td>
				</tr>
				<tr>
					<td><spring:message code="credentials.password" /></td>
					<td><form:password path="password" /></td>
				</tr>
				<tr>
					<td colspan="2" align="right">
						<input type="submit" value="login" />
					</td>
				</tr>
			</table>
		</form:form>
		<a href="<spring:url value='/users/add'/>">Add</a>
	</body>
</html>